﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using BUS;
using DAO;

namespace FDeal
{
    public partial class Default : System.Web.UI.Page
    {
        //ChiTietDealDTO[] _DSChiTietDealDTO;
        //ChiTietDealBUS chiTietDealBUS = new ChiTietDealBUS();

        //protected void Page_Load(object sender, EventArgs e)
        //{
        //    //_DSChiTietDealDTO = chiTietDealBUS.GetDsChiTietDeal();
        //    //cac cai con lai
        //    //random 6 cai-theo ngay dang
        //   // lbTieuDe.Text = _DSChiTietDealDTO[0].Tieude;
        //}

        //protected void Page_PreInit(object sender, EventArgs e)
        //{
        //    if (Session["CurrentTheme"] != null)
        //        Page.Theme = Session["CurrentTheme"].ToString();
        //}


        protected void Page_Load(object sender, EventArgs e)
        {
            

            //HtmlGenericControl gel = new HtmlGenericControl("div");
            //Control ctrl = Page.LoadControl("ThongTinChiTiet.ascx");
            //((UC_SanPham)ctrl).Lb = i.ToString();
            //ThongTinChiTiet1.GanTieuDe(dsChiTietDeal[0].TIEUDE);
            //ThongTinChiTiet1.GanAnh("~/images/anhsanpham/" + dsChiTietDeal[0].HINHANH);
            //ThongTinChiTiet1.GanTomTat(dsChiTietDeal[0].TOMTATDEAL);
            //ThongTinChiTiet1.GanGia(dsChiTietDeal[0].GIACONLAI.ToString());
            //ThongTinChiTiet1.GanTietKiem((dsChiTietDeal[0].GIACONLAI / dsChiTietDeal[0].GIAGOC * 100).ToString());
            //ThongTinChiTiet1.GanConLai(dsChiTietDeal[0].THOIGIANCONLAI.ToString());
                       
            
           //gel.Controls.Add(ctrl);
            //DanhSachSanPham.Controls.Add(gel);
        }
    }
}